#include "bsp_uart.h"
#include "usart.h"
#include "rs485.h"
#include "task_comm.h"


extern UART_HandleTypeDef hlpuart1;
extern UART_HandleTypeDef huart1;

void BSP_UART_Init(void) {

    MX_USART1_UART_Init();
}

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
    if (huart == &hlpuart1) {
        ML307_RxHandler();
    }
    else if (huart == &huart1) {
        RS485_RxHandler();
    }
}
